<?php
	class book
	{
		private $name;
		private $author;
		
		function __construct($name="", $author="")
		{
			if(is_string($name))
			{
				$this->name=$name;
			}
			else 
			{
				echo "Not string";
			}
			
			if(is_string($author))
			{
				$this->author=$author;
			}
			else
			{
				echo "Not string";
			}
		}
		
		public function getName()
		{
			return $this->name;
		} 
		
		public function getAuthor()
		{
			return $this->author;
		}
	}
	
	
	$book=new book("Casual Vacancy", "J.K.Rowling");
	echo $book->getName();
	
?>